package com.peng.ivos.audit.mapper;

import com.peng.ivos.audit.pojo.dto.AuditQuery;
import com.peng.ivos.audit.pojo.entity.Audit;
import com.peng.ivos.audit.pojo.vo.AuditVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 审批单持久层接口
 * @author： Peng
 * @date： 2024/5/24
 * @version: 1.0
 */
@Mapper
public interface AuditMapper {
    int insertAudit(Audit audit);

    List<AuditVO> selectAuditByExample(AuditQuery auditQuery);

    int deleteByApplicationId(Long applicationId);

    List<AuditVO> selectAudit(AuditQuery auditQuery);

    Integer selectRestAuditCount(AuditQuery auditQuery);

    int update(Audit audit);

    int deleteById(Long id);
}
